<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ include file="base.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>dish.jsp</title>
    
	

  </head>
  
  <body>
   <div class="row"> 
		<div class = "span2 well" style="margin-right:20px; margin-top:70px;">				
			<ul class="nav nav-list">					 					
			  <li class="active"><a href="${basePath }/dish.jspx">店长推荐（2）</a></li>
				  <li><a href="${basePath }/dish.jspx?s=onsale">今日特价（1）</a></li>
				   <li><a href="${basePath }/dish.jspx?s=pop">最受欢迎（4）</a></li>	
				  <li><a href="${basePath }/dish.jspx?s=esp">特色（2）</a></li>			   
				  <li><a href="${basePath }/dish.jspx?s=cold">凉菜（5）</a></li>
				  <li><a href="${basePath }/dish.jspx?s=hot">炒菜（12）</a></li>
				  <li><a href="${basePath }/dish.jspx?s=ganguo">干锅（3）</a></li>
				  <li><a href="${basePath }/dish.jspx?s=fish">鱼（5）</a></li>
				  <li><a href="${basePath }/dish.jspx?s=mainfood">主食（4）</a></li>	
				  <li><a href="${basePath }/dish.jspx?s=jiu">酒水（15）</a></li>
				  <li><a href="${basePath }/dish.jspx?s=sweet">甜品（6）</a></li>
			</ul>					
		</div>
		<div class="span9 well" style="margin-right:20px; margin-top:70px;">
			<c:forEach items="${dishlist}" var="dish">
				<div class="span2 " style="margin:15px;">
					<img src="img/hamburger.png"   rel="tooltip" class="tip" title="${dish.cont}"/>	<br>
					<span class="span2" text-align="center">${dish.dish_name}${dish.price}</span>
					<button class="btn btn-primary">添加</button>
				</div>
			</c:forEach>
			
			
			
						
							
					
		</div>	
	</div>
	
	<script type="text/javascript">
	
		$(document).ready(function () {  
								
				$(".tip").tooltip();
			});  
	
	
	
	
	</script>
	
  </body>
</html>
